﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FySystem.Net.LSTP
{
    internal class RequestInfo
    {
        /// <summary>
        /// 请求时间，用于删除一些发送了请求但由于各种意外没收到返回的请求
        /// </summary>
        internal DateTime RequestTime { get; set; } = DateTime.Now;

        internal Action<LSTPResponse> Callback { get; set; }
    }

    internal class FileRequestInfo
    {
        internal DateTime RequestTime { get; set; } = DateTime.Now;

        internal string FullName { get; set; }

        internal string ShortName { get; set; }

        internal Action Callback { get; set; }

        /// <summary>
        /// 失败计数器
        /// </summary>
        internal int ErrorCount { get; set; } = 0;
    }
}
